home *** CD-ROM | disk | FTP | other *** search
- Path: lade.news.pipex.net!pipex!dircon!usenet
- From: pg-smith@dircon.co.uk (Peter Smith)
- Newsgroups: comp.lang.c
- Subject: Rounding a double
- Date: 2 Apr 1996 00:14:26 GMT
- Organization: Direct Connection
- Message-ID: <4jprh2$1li@newsgate.dircon.co.uk>
- NNTP-Posting-Host: gw4-185.pool.dircon.co.uk
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.3
-
- Has anybody got a C function to round a double to a number of decimal
- places that:
- a) is readable
- b) is relatively short
- c) works !!
- I had a function but it failed if the number of decimal places was zero,
- if the double was very small, .. . etc etc.
-
- Is there a library of freeware C functions anywhere on the Internet ??
-
- Many thanks
- Pete
-
- replies to : pg-smith@dircon.co.uk
-
-